<div id="menuBar">
    <div class="container">
        <ul id="nav" class="horizMenu menuMain">
            <?
            foreach($mainMenu as $menuItem) {
                echo '<li><a href="'.site_url('category/'.$menuItem['Link']).'" class="linkMainMenu">'.$menuItem['Title'].'</a>';
                if (isset($mainMenu[$menuItem['CID']]['Submenu']) && IS_MOBILE == 'no') {
                    echo '<ul>';
                    foreach($mainMenu[$menuItem['CID']]['Submenu'] as $submenuItem) {
                        echo '<li><a href="'.site_url('category/'.$menuItem['Link'].'/'.$submenuItem['Link']).'">'.$submenuItem['Title'].'</a></li>';
                    }
                    echo '</ul>';
                }
                echo '</li>';
            }
            ?>
        </ul>
        <div id="searchContainer">
            <input type="text" class="seachBar" value="Search this site" />
            <button class="btnGo"></button>
        </div>
    </div>
</div>
